<table cellpadding="5">
	<input name="id" type="hidden" value="${(cmsNavigationItem.id)!}" />
	<tr>
		<td class="tbLabel">上级栏目:</td>
		<td>
			<@eu.comboBox  name="parentId" required="false" url="cmsNavigation.do?loadCmsNavicationComboBox&value=${(cmsNavigationItem.parentId)!}"/>		
		</td>
		<td class="tbLabel">编码:</td>
		<td>
			<input name="code"  class="easyui-validatebox textbox" data-options="required: false" <#if (cmsNavigationItem.id)??>readonly="readonly"</#if> value="${(cmsNavigationItem.code)!}"/>
		</td>
		<td class="tbLabel">名称:</td>
		<td>
			<input name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.name)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">序号:</td>
		<td>
			<input name="num" style="width:158px;" class="easyui-numberbox"  precision="0" data-options="required: false" value="${(cmsNavigationItem.num)!}" />
		</td>
		<td class="tbLabel">是否启用:</td>
		<td>
		    <@eu.comboBox url="common.do?loadComboBox&key=YON&value=${(cmsNavigationItem.status)!'true'}" required="true" name="status"/>
		</td>
		<td class="tbLabel">是否导航:</td>
		<td>
		    <@eu.comboBox url="common.do?loadComboBox&key=YON&value=${(cmsNavigationItem.enableNav)!'true'}" required="true" name="enableNav"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">链接类型:</td>
		<td>
		    <@eu.comboBox onSelect="cmsSelectUrlType(value)" url="common.do?loadComboBox&key=CMS_URL_TYPE&value=${(cmsNavigationItem.urlType)!'noSkip'}" required="true" name="urlType"/>
		</td>
		<td class="tbLabel">自定义链接:</td>
		<td colspan="3">
			<input id="cmsDefaultUrl" name="defaultUrl" style="width:385px;" <#if (cmsNavigationItem.urlType)??&&cmsNavigationItem.urlType=='definedUrl'><#else>readonly="readonly"</#if>  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.defaultUrl)!'#'}"/>
		</td>
	</tr>
	<tr>
		
<!-- 		<td class="tbLabel">手机访问地址:</td> -->
<!-- 		<td> -->
<!-- 			<input name="mobileUrl"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.mobileUrl)!}"/> -->
<!-- 		</td> -->
		
	</tr>
<!-- 	<tr> -->
<!-- 		<td class="tbLabel">meta标题:</td> -->
<!-- 		<td> -->
<!-- 			<input name="metaTitle"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.metaTitle)!}"/> -->
<!-- 		</td> -->
<!-- 	</tr> -->
<!-- 	<tr> -->
<!-- 		<td class="tbLabel">meta关键字:</td> -->
<!-- 		<td> -->
<!-- 			<input name="metaKeyword"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.metaKeyword)!}"/> -->
<!-- 		</td> -->
<!-- 	</tr> -->
<!-- 	<tr> -->
<!-- 		<td class="tbLabel">meta描述:</td> -->
<!-- 		<td> -->
<!-- 			<input name="metaDesc"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsNavigationItem.metaDesc)!}"/> -->
<!-- 		</td> -->
<!-- 	</tr> -->
</table>

<script>
function cmsSelectUrlType(value) {
	printLog(value);
	if(value.value=='noSkip') {
		$('#cmsDefaultUrl').val('#');
		$('#cmsDefaultUrl').attr({ readonly: 'true' });  //设置输入框为禁用
	}else if(value.value=='defaultUrl') {
		$('#cmsDefaultUrl').val('');
		$('#cmsDefaultUrl').attr({ readonly: 'true' });  //设置输入框为禁用
	}else if(value.value=='definedUrl') {
		$('#cmsDefaultUrl').val('');
		$('#cmsDefaultUrl').removeAttr("readonly");    //去除readonly属性
	}
}
</script>
